import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/stock_out_order_goods_detail_entity.dart';


StockOutOrderGoodsDetailEntity $StockOutOrderGoodsDetailEntityFromJson(Map<String, dynamic> json) {
  final StockOutOrderGoodsDetailEntity loginBeanEntity = StockOutOrderGoodsDetailEntity();

  final String? goodsBarCode = jsonConvert.convert<String>(json['goodsBarCode']);
  if (goodsBarCode != null) {
    loginBeanEntity.goodsBarCode = goodsBarCode;
  }
  final String? batchNo = jsonConvert.convert<String>(json['batchNo']);
  if (batchNo != null) {
    loginBeanEntity.batchNo = batchNo;
  }
  final String? locationId = jsonConvert.convert<String>(json['locationId']);
  if (locationId != null) {
    loginBeanEntity.locationId = locationId;
  }
  final String? locationName = jsonConvert.convert<String>(json['locationName']);
  if (locationName != null) {
    loginBeanEntity.locationName = locationName;
  }
  final double? usableCount = jsonConvert.convert<double>(json['usableCount']);
  if (usableCount != null) {
    loginBeanEntity.usableCount = usableCount;
  }
  final double? usableWeight = jsonConvert.convert<double>(json['usableWeight']);
  if (usableWeight != null) {
    loginBeanEntity.usableWeight = usableWeight;
  }

  final double? stockOutCount = jsonConvert.convert<double>(json['stockOutCount']);
  loginBeanEntity.stockOutCount = stockOutCount;

  final double? mainWeight = jsonConvert.convert<double>(json['mainWeight']);
  loginBeanEntity.mainWeight = mainWeight;

  final double? subWeight = jsonConvert.convert<double>(json['subWeight']);
  loginBeanEntity.subWeight = subWeight;

  final double? stockOutWeight = jsonConvert.convert<double>(json['stockOutWeight']);
  loginBeanEntity.stockOutWeight = stockOutWeight;

  return loginBeanEntity;
}

Map<String, dynamic> $StockOutOrderGoodsDetailEntityToJson(StockOutOrderGoodsDetailEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['goodsBarCode'] = entity.goodsBarCode;
  data['batchNo'] = entity.batchNo;
  data['locationName'] = entity.locationName;
  data['usableCount'] = entity.usableCount;
  data['usableWeight'] = entity.usableWeight;
  data['stockOutCount'] = entity.stockOutCount;
  data['mainWeight'] = entity.mainWeight;
  data['subWeight'] = entity.subWeight;
  data['stockOutWeight'] = entity.stockOutWeight;
  return data;
}
